package com.zingrow.web.configure.domain.service;

import java.io.File;
import java.util.List;

import com.zingrow.common.utils.PageView;
import com.zingrow.web.common.utils.AnalyzeResult;
import com.zingrow.web.configure.domain.model.Domain;

public interface IDomainService {

	//模糊查询
	abstract List<Domain> queryByParams(PageView pageView,
			String domain_domain,String domain_name,String domain_category,Integer is_exprot);

	//新增
	abstract boolean addDomain(Domain domain);

	//修改
	abstract boolean modifyDomain(Domain domain);
	
	//单个查询
	abstract Domain queryByid(Integer domain_id);

	//删除
	abstract boolean deletedomain(Integer domain_id);
	
	//查询同名
	abstract boolean queryByDomainAndName(Integer domain_id,String domain_domain,String domain_name);
	
	//根据名称模糊查询接口
	abstract List<Domain> queryParamsByName(String domain_name);
	
	//根据list集合中的id查询站点信息
	//public abstract List<Domain> queryDomainById(List<String> idlist);
	
	abstract void analyzeExcelData(File file,AnalyzeResult<Domain> result)throws Exception;
	
	//List<Integer> insertFromExcel(List<Domain> domains);
	//导出方法
	abstract List<Domain> queryDomainById(List<Integer> ids);
	
	
	
}